package com.yeebo.domain.config;

import com.yeebo.constants.Constants;
import com.yeebo.model.user.User;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class RabbitReceiver {

    @RabbitListener(queues = Constants.TEST_QUEUE_KEY)
    public void testQueueReceiver(User user) {
        System.out.println("接收到消息队列通知，内容：" + user.getName());
    }

}
